package com.zjitc.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * Create By IntelliJ IDEA
 *
 * @author: myq
 * @create-Time: 2017/11/23  11:31
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class Orders implements Serializable {

  private String oid;
  private Float totalPrice;
  private String phone;
  private String name;
  private String address;
  private String createTime;
  private String state;
  private String uid;

  private User user;
  private List<Orderitem> orderitems;

  public Orders(String oid, Float totalPrice, String telephone, String name, String address, String createTime, String state, String uid) {
    this.oid = oid;
    this.totalPrice = totalPrice;
    this.phone = telephone;
    this.name = name;
    this.address = address;
    this.createTime = createTime;
    this.state = state;
    this.uid = uid;
  }
}
